home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8040 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is &Variable (declared as: char Variable[10])?
  5. Date: 29 Feb 1996 07:46:29 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb29004629@qcd.lanl.gov>
  8. References: <4gqpa1$3h9@alcor.usc.edu> <4gsdno$1bg@umbc9.umbc.edu>
  9.     <4gtab6$acb@ceylon.gte.com> <313318b8.53776146@nntp.ix.netcom.com>
  10.     <4h1u9d$sqq@ceylon.gte.com> <825539570snz@genesis.demon.co.uk>
  11. NNTP-Posting-Host: qcd.lanl.gov
  12. Mime-Version: 1.0
  13. Content-Type: text
  14. In-reply-to: Lawrence Kirby's message of Wed, 28 Feb 96 20:32:50 GMT
  15.  
  16. In article <825539570snz@genesis.demon.co.uk>
  17. Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  18.  
  19. <snip>
  20. LK: The thing that C does not really support is the idea of an array
  21. 'value' (or 
  22. LK: more accurately a value with array type). For example you can't assign
  23.  
  24. Technically, of course, you can have values of array types. The
  25. problem is that there are _completely_ useless. The only things you
  26. can do with them is either ignore them (i.e. cast them to void, or
  27. otherwise not use the value), or pass them to varargs functions which
  28. do not access them :-)
  29.  
  30. In any case, one usually does not create them except by complicated
  31. mistakes. For example, using an array name does not create an array
  32. value.
  33.  
  34. I leave the two lines below as an antidote against the indigestion
  35. that my post may create.
  36.  
  37. <snip>
  38. LK: The oddity is that when evaluated an array lvalue does not generate a value
  39. LK: (rvalue) that has array type.
  40.  
  41. Cheers
  42. Tanmoy
  43. --
  44. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  45. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  46. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  47. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  48. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  49. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  50.